Preventing ghost click when binding touchstart and click(Ghost clicks in mobile browsers)
What is ghost Clicking?
In any touch device, mobile browsers emulate click events when the screen is touched.
What happend when the screen is taped?
A touchstart event is fired as soon as a finger touches the screen.A touchend event is fired as soon as the finger leaves the screen, then the browser waits around 300ms for another tap.If not, a click event is fired. This is the ghost click.
How to Prevent this?
$('#div').on('touchstart', function(e) {
alert('touch');
e.preventDefault();
});
For 10 years in this industry, We Cutting Tools Co. Ltd Vargus Inserts had established a perfect internal management system that controls and manages the standard quality Hitachi Inserts of each product. Our company has tungsten carbide cutting tools achieved a good reputation in both domestic and overseas market by producing premium products.
Explore the world of artificial jewellery online at Jewelgalore. Discover their exquisite collection of affordable yet elegant pieces, perfect for expressing your unique style.
Shalamar Hospital, your trusted cardiology hospital Lahore , is dedicated to the heart health of the community, delivering top-quality cardiac care and expertise.
Osh University's commitment to medical education extends to osh kyrgyzstan , ensuring our students are well-versed in this essential field of study. It's a key component of our comprehensive medical curriculum.
Rafat Law Associates is a prominent law firms in Islamabad, known for its exceptional legal services and expertise. With a dedicated team of skilled lawyers, they offer a wide range of legal solutions to clients.
Mohagni is renowned for its exceptional collection of ladies trouser design available for online purchase in Pakistan. With a diverse range of products to choose from, Mohagni ensures that customers have access to the best designs.
Shahtaj Qaiser offers a wide range of party wear dress in Pakistan. Discover the latest party dresses with various designs at low price. Grab your favorite dresses online today!
Shahtaj Qaiser offers a wide range of party wear dress in Pakistan. Discover the latest party dresses with various designs at low price. Grab your favorite dresses online today!
Step up your fashion game with Walkeaze latest collection of High Heels shoes for women. With a wide range of shoes, including high heels and wedge heels, we have something for women. So, get your favorite heels today.
Enhance your natural beauty with the Chahyay lip gloss and lip tint collection. Our high-quality formulas offer a range of stunning shades that leave your lips pleasing and radiant. Shop now for the perfect Lip gloss and tint from Chahyay.
Shop the latest collection of stylish and comfortable Pumps Shoes for Ladies at Servis. Our pumps are designed to keep your feet looking chic and feeling great. Browse our range now and find the perfect pair for any occasion
Shop for unique and elegant floral jewellery from our wide selection of designs. Our handcrafted pieces are perfect for any occasion and feature a variety of materials including gold, silver, pearls, crystals, and more. Find the perfect piece today!
Looking for baby toys online in Pakistan? The Entertainer offers an amazing collection of baby walker, toys, bouncers, and chair of the best quality. So, Shop Now for Baby toys online from The Entertainer.
Discover the latest women shoes in Pakistan that perfectly merge fashion and comfort. Everything from traditional to modern, is covered by our collection, taking you one step forward in grace. Shop now!
Are you looking for the latest embroidered dresses online in Pakistan? So, come to Meerak online and get the latest embroidered dress online in all over Pakistan at reasonable prices with quick delivery.
Please rotate your device
We don't support landscape mode on your device. Please rotate to portrait mode for the best view of our site